package it.polimi.traveldream.web;

import it.polimi.traveldream.ContentEAOLocal;
//import it.polimi.traveldream.GestioneUtenteLocal;
//import it.polimi.traveldream.UtenteDTO;

import it.polimi.traveldream.GestioneUtenteLocal;
import it.polimi.traveldream.UtenteDTO;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean
@RequestScoped
public class ContentBean {
	
	@EJB
	private ContentEAOLocal content;
	
	@EJB
	private GestioneUtenteLocal ge;

	public ContentBean() {
		// TODO Auto-generated constructor stub
	}

	public String getEmployeeContent() {
		return content.getEmployeeContent();
	}


	public String getUserContent() {
		return content.getUserContent();
	}
	
	public UtenteDTO getUser() {
		return  ge.findUserByEmail();
	 }
}
